/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package rest.jbpm.identity;

import org.jbpm.api.identity.User;

/**
 *
 * @author jump
 */
public class ExtendedUser implements User {

    private final String id;
    private final String givenName;
    private final String familyName;
    private final String email;
    private final String phone;

    public ExtendedUser(String id, String givenName, String familyName, String email, String phone) {
        this.id = id;
        this.givenName = givenName;
        this.familyName = familyName;
        this.email = email;
        this.phone = phone;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getGivenName() {
        return givenName;
    }

    @Override
    public String getFamilyName() {
        return familyName;
    }

    @Override
    public String getBusinessEmail() {
        return email;
    }

    public String getPhone() {
        return phone;
    }

}
